<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改标签')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-lable-edit" th:object="${lable}">
<!--            <input id="lableId" name="lableId" th:field="*{lableId}"  type="hidden">-->
			<div class="form-group">
				<label class="col-sm-3 control-label"><span style="color: red; ">*</span>标签ID：</label>
				<div class="col-sm-8">
					<input id="tagId" name="tagId" th:field="*{tagId}" class="form-control" type="text" readonly="true">
				</div>
			</div>
<!--			<div class="form-group">-->
<!--				<label class="col-sm-3 control-label">标签类型：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="modelType" name="modelType" th:field="*{modelType}" class="form-control" type="text" readonly>-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">-->
<!--				<label class="col-sm-3 control-label">标签型号：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="modelNumber" name="modelNumber" th:field="*{modelNumber}" class="form-control" type="text" readonly>-->
<!--				</div>-->
<!--			</div>-->
			<input id="tagType" name="tagType" th:field="*{tagType}" class="form-control" type="hidden" >
			<div class="form-group">
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
				</div>
			</div>

		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		// 去掉所有input的autocomplete, 显示指定的除外 
		$(function(){
			$('input:not([autocomplete]),textarea:not([autocomplete]),select:not([autocomplete])').attr('autocomplete', 'off');
		});
		var prefix = ctx + "system/lable";
		$("#form-lable-edit").validate({
			rules:{
				tagId:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-lable-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
